package com.kingdee.eas.ec.garden.contract.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.garden.contract.GaPurContractBillCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.CoreBillBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.BillBaseCollection;
import com.kingdee.eas.ec.basedata.BaseBillCollection;
import com.kingdee.eas.framework.ObjectBaseCollection;
import com.kingdee.eas.ec.contract.framework.CommonContractBillCollection;
import com.kingdee.eas.ec.contract.framework.app.CommonContractBillControllerBean;
import com.kingdee.eas.ec.contract.framework.ContractBillCollection;
import com.kingdee.eas.ec.contract.framework.ContractBaseBillCollection;
import com.kingdee.eas.ec.garden.contract.GaPurContractBillInfo;



public abstract class AbstractGaPurContractBillControllerBean extends CommonContractBillControllerBean implements GaPurContractBillController
{
    protected AbstractGaPurContractBillControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("0D00E0F1");
    }

    public GaPurContractBillInfo getGaPurContractBillInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7a9e029b-ccd8-451e-89ba-fc673cabf7f3"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillInfo retValue = (GaPurContractBillInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillInfo)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaPurContractBillInfo getGaPurContractBillInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("427a0407-5c3b-4823-9bf4-b77ee6764a59"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillInfo retValue = (GaPurContractBillInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillInfo)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaPurContractBillInfo getGaPurContractBillInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("78bee591-a5a0-4aa8-87ce-0d93cffba064"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillInfo retValue = (GaPurContractBillInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillInfo)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaPurContractBillCollection getGaPurContractBillCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("09735f77-628a-4c1f-a59e-8e3f4dac6b42"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillCollection retValue = (GaPurContractBillCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillCollection)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaPurContractBillCollection getGaPurContractBillCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fcdf9b42-b27d-46d2-96b9-d111466220e6"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillCollection retValue = (GaPurContractBillCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillCollection)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaPurContractBillCollection getGaPurContractBillCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8eef0b58-4a43-46f5-8b91-c832d06cf19b"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            GaPurContractBillCollection retValue = (GaPurContractBillCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
        
          return (GaPurContractBillCollection)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public CommonContractBillCollection getCommonContractBillCollection (Context ctx) throws BOSException
    {
    	return (CommonContractBillCollection)(getGaPurContractBillCollection(ctx).cast(CommonContractBillCollection.class));
    }
    public CommonContractBillCollection getCommonContractBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CommonContractBillCollection)(getGaPurContractBillCollection(ctx, view).cast(CommonContractBillCollection.class));
    }
    public CommonContractBillCollection getCommonContractBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (CommonContractBillCollection)(getGaPurContractBillCollection(ctx, oql).cast(CommonContractBillCollection.class));
    }
    public ContractBillCollection getContractBillCollection (Context ctx) throws BOSException
    {
    	return (ContractBillCollection)(getGaPurContractBillCollection(ctx).cast(ContractBillCollection.class));
    }
    public ContractBillCollection getContractBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractBillCollection)(getGaPurContractBillCollection(ctx, view).cast(ContractBillCollection.class));
    }
    public ContractBillCollection getContractBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractBillCollection)(getGaPurContractBillCollection(ctx, oql).cast(ContractBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx) throws BOSException
    {
    	return (ContractBaseBillCollection)(getGaPurContractBillCollection(ctx).cast(ContractBaseBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractBaseBillCollection)(getGaPurContractBillCollection(ctx, view).cast(ContractBaseBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractBaseBillCollection)(getGaPurContractBillCollection(ctx, oql).cast(ContractBaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurContractBillCollection(ctx).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurContractBillCollection(ctx, view).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurContractBillCollection(ctx, oql).cast(BaseBillCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurContractBillCollection(ctx).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurContractBillCollection(ctx, view).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurContractBillCollection(ctx, oql).cast(BillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurContractBillCollection(ctx).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurContractBillCollection(ctx, view).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurContractBillCollection(ctx, oql).cast(CoreBillBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurContractBillCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurContractBillCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurContractBillCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurContractBillCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurContractBillCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurContractBillCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}